what is order will the functions foo and bar be executed